

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>

<s:form name="formBody" id="formBody">

<s:hidden name="start"/>
<s:hidden name="count"/>
<s:hidden name="orderBy"/>
<s:hidden name="ascDesc"/>
<s:hidden name="previousPage"/>
<s:hidden name="gotoPage"/>
<s:hidden name="actionMethod" value="%{actionMethod}"/>
<s:token/>

<div class="header"><span><span class="ico gray administrator"></span>Persetujuan Klien</span>
</div><!-- End header -->	
<div class="content" >
	
		<!-- Third / Half column-->
		<div class="widgets">
				<div class="section" >
					<label>Nama Klien</label>
					<div><s:textfield cssClass="large" name="namaDebitur" labelposition="left" maxlength="20" id="name" autocomplete="off"/></div>
				</div>
				<div class="section" >
					<label>Status</label>
					<div>
						<s:radio name="acceptedStatus"
									list="#{2:'Diterima',1:'Pending',0:'Ditolak'}"
									/>
					</div>
					<div class="section last">
						<!-- a class="uibutton icon forward confirm" title="Cari Sertifikat" rel="1" >cari</a-->
						<s:submit action="PersetujuanKlienAction_list" value="Cari" indicator="indicator" cssClass="uibutton" cssStyle="width:100px"/>
						<!-- a href="PersetujuanKlienAction_list.do?" title="Cari Sertifikat" class="uibutton icon forward confirm">Cari</a-->
					</div>
				</div>
		</div><!-- End Third / Half column-->
	
	   <!-- clear fix -->
		<div class="clear"></div>

		<div class="tableName">
			<div style= "text-align:right; margin-top: 10px;">
				<!-- a class="uibutton icon special answer" style="text-align:right;" >tolak</a-->							
							
			</div>
			<div class="clear"></div>
				
			<table class="display data_table1">
				<thead>
					<tr>
						<th><div class="th_wrapp"><s:text name="label.no"/></div></th>
						<th align="left">Nama Klien</th>
						<th align="left">Nama Pasangan Kawin</th>
						<th><div class="th_wrapp">Status</div></th>
						<th><div class="th_wrapp">Action</div></th>
					</tr>
				</thead>
				<tbody>
					<s:iterator value="listClient" status="sequence">
					<tr class="odd gradeX">
						<!-- td><s:checkbox name="selectedRows" fieldValue="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(sertifikat.id)}"/></td-->
					    <td><s:property value="%{start+#sequence.index+1}"/></td>
						<td style="text-align:left"><s:property value="debitur.name"/></td>
						<td style="text-align:left"><s:property value="debitur.marriedCouple"/></td>
						<td class="center">
							<s:if test="acceptedStatus == 2">
								<span class="tip" >
									<a href="#" title="Diterima"><img src="images/icon/color_18/checkmark2.png" alt="Diterima"></a>
								</span>	
							</s:if>
							<s:elseif test="acceptedStatus == 1">
								<span class="tip" >
									<a href="#" title="Pending"><img src="images/icon/color_18/chat-exclamation.png" alt="Pending"></a>
								</span>	
							</s:elseif>
							<s:elseif test="acceptedStatus == 0">
								<span class="tip" >
									<a href="#" title="Ditolak"><img src="images/icon/color_18/cross.png" alt="Ditolak"></a>
								</span>
							</s:elseif>
							<s:else>
								<span class="tip" >
									-
								</span>
							</s:else>
						</td>
						<td>
							<a href="DetailKlienAction_detail.do?id=<s:property value="%{@com.lemurian.bankdata.lite.utils.GlobalFunction@encodeParameter(id)}"/>&prev=PersetujuanKlienAction_list" title="Detail"><img src="images/icon/color_18/zoom.png" ></a>
						</td>
					</tr>
					</s:iterator>
				</tbody>
			</table>
			
			<div>
				<s:property value="%{pagerItem}" escape="false"/>
				<div class="clear"></div>
			</div>
		
		</div>
	
   <!-- clear fix -->
<div class="clear"></div>

</div><!-- End content -->
</s:form>

<script type="text/javascript">
	function toggle(source) {
	  checkboxes = document.getElementsByName('selectedRows');
	  for(var i in checkboxes)
	    checkboxes[i].checked = source.checked;
	}
</script>